﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.PackageManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.PackageManagement.PackageSchemeVMs
{
    public partial class PackageSchemeBatchVM : BaseBatchVM<PackageScheme, PackageScheme_BatchEdit>
    {
        public PackageSchemeBatchVM()
        {
            ListVM = new PackageSchemeListVM();
            LinkedVM = new PackageScheme_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class PackageScheme_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._PackageScheme._Name")]
        public string Name { get; set; }
        [Display(Name = "_Model._PackageScheme._Code")]
        public string Code { get; set; }
        [Display(Name = "_Model._PackageScheme._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._PackageScheme._ProductName")]
        public string ProductName { get; set; }
        [Display(Name = "_Model._PackageScheme._Rules")]
        public string Rules { get; set; }
        [Display(Name = "_Model._PackageScheme._Qty")]
        public decimal? Qty { get; set; }
        [Display(Name = "_Model._PackageScheme._EnablePrint")]
        public bool? EnablePrint { get; set; }
        [Display(Name = "_Model._PackageScheme._SerialNumber")]
        public long? SerialNumber { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}